cmake_minimum_required(VERSION 3.10)

project(tiltlock C)

add_subdirectory(${CMAKE_SOURCE_DIR}/../deps/libvsync/ build_libvsync)

include_directories(include ${CMAKE_SOURCE_DIR}/../deps/tilt/include/)

add_library(vmuslmutex SHARED vmuslmutex.c)
add_library(vcaslock SHARED vcaslock.c)
add_library(vticketlock SHARED vticketlock.c)

target_link_libraries(vmuslmutex vsync)
target_link_libraries(vcaslock vsync)
target_link_libraries(vticketlock vsync)
